package com.chb.friend2;

import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;

public class Fof2Group extends WritableComparator{
	public Fof2Group() {
		super(User.class, true);
	}
	@Override
	public int compare(WritableComparable a, WritableComparable b) {
		User u1 = (User)a;
		User u2 = (User)b;
		return u1.getUserName().compareTo(u2.getUserName());
	}
	
}
